from django.shortcuts import render
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from login import models, serializers

# Create your views here.
class User(ModelViewSet):
    queryset = models.User.objects.all()
    serializer_class = serializers.PhonenumberSerializer

    def list(self, request, *args, **kwargs):
        return Response({"msg": "ok", "data": super().list(request)})
